package com.mgvlife.ddlw.filter;

import com.mgvlife.ddlw.util.HttpSessionUtil;
import com.opensymphony.xwork2.ActionInvocation;
import com.opensymphony.xwork2.interceptor.MethodFilterInterceptor;

public class AdminInterceptot extends MethodFilterInterceptor {

	private static final long serialVersionUID = -782706110048048600L;

	@Override
	protected String doIntercept(ActionInvocation invocation) throws Exception {
		System.out.println("In SuperAdminInterceptot");
		String status = HttpSessionUtil.getAdminStatus();
		if (status == null) {
			// 登录超时
			return "logintimeout";
		}
		return invocation.invoke();
	}

}
